<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/gb/isr.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('isr_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">isr.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="isr_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef _ISR_H_INCLUDE_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define _ISR_H_INCLUDE_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// #define VECTOR_VBL     0x40 // you can not define raw vector for VBlank interrupt</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="isr_8h.html#a2cf2cba8468992868fe1f6b6448ffae2">   16</a></span>&#160;<span class="preprocessor">#define VECTOR_STAT    0x48  </span></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="isr_8h.html#a84ca82d76186433c1ec77fde7652b827">   17</a></span>&#160;<span class="preprocessor">#define VECTOR_TIMER   0x50  </span></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="isr_8h.html#a9c51a56a79576c33fcc98579bf7153a1">   18</a></span>&#160;<span class="preprocessor">#define VECTOR_SERIAL  0x58  </span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="isr_8h.html#ac93f10ff354ca76f4030f64a8496303f">   19</a></span>&#160;<span class="preprocessor">#define VECTOR_JOYPAD  0x60  </span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structisr__vector__t.html">   21</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structisr__vector__t.html">isr_vector_t</a> {</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">   22</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">opcode</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">   23</a></span>&#160;    <span class="keywordtype">void</span> * <a class="code" href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">func</a>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">   24</a></span>&#160;} <a class="code" href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">isr_vector_t</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="isr_8h.html#a73769fed9338af86fdb7df35d7b82620">   52</a></span>&#160;<span class="preprocessor">#define ISR_VECTOR(ADDR, FUNC) \</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">static const isr_vector_t AT((ADDR)) __ISR_ ## ADDR = {0xc3, (void *)&amp;(FUNC)};</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html">   55</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structisr__nested__vector__t.html">isr_nested_vector_t</a> {</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">   56</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">opcode</a>[2];</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">   57</a></span>&#160;    <span class="keywordtype">void</span> * <a class="code" href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">func</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">   58</a></span>&#160;} <a class="code" href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">isr_nested_vector_t</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="isr_8h.html#a78f9ef588aaf221023e48899898d566b">   74</a></span>&#160;<span class="preprocessor">#define ISR_NESTED_VECTOR(ADDR, FUNC) \</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">static const isr_nested_vector_t AT((ADDR)) __ISR_ ## ADDR = {{0xfb, 0xc3}, (void *)&amp;(FUNC)};</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// _ISR_H_INCLUDE_</span></div>
<div class="ttc" id="aisr_8h_html_a40dca48ca391581d7f67d8697533cf30"><div class="ttname"><a href="isr_8h.html#a40dca48ca391581d7f67d8697533cf30">isr_vector_t</a></div><div class="ttdeci">struct isr_vector_t isr_vector_t</div></div>
<div class="ttc" id="aisr_8h_html_a99e64ac886740db0eb63d8ed0235b5c7"><div class="ttname"><a href="isr_8h.html#a99e64ac886740db0eb63d8ed0235b5c7">isr_nested_vector_t</a></div><div class="ttdeci">struct isr_nested_vector_t isr_nested_vector_t</div></div>
<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
<div class="ttc" id="astructisr__nested__vector__t_html"><div class="ttname"><a href="structisr__nested__vector__t.html">isr_nested_vector_t</a></div><div class="ttdef"><b>Definition:</b> isr.h:55</div></div>
<div class="ttc" id="astructisr__nested__vector__t_html_a097ce850c38d6045af8f419a07a34b66"><div class="ttname"><a href="structisr__nested__vector__t.html#a097ce850c38d6045af8f419a07a34b66">isr_nested_vector_t::opcode</a></div><div class="ttdeci">uint8_t opcode[2]</div><div class="ttdef"><b>Definition:</b> isr.h:56</div></div>
<div class="ttc" id="astructisr__nested__vector__t_html_a4009f14b9912d9a852873e2019044d0c"><div class="ttname"><a href="structisr__nested__vector__t.html#a4009f14b9912d9a852873e2019044d0c">isr_nested_vector_t::func</a></div><div class="ttdeci">void * func</div><div class="ttdef"><b>Definition:</b> isr.h:57</div></div>
<div class="ttc" id="astructisr__vector__t_html"><div class="ttname"><a href="structisr__vector__t.html">isr_vector_t</a></div><div class="ttdef"><b>Definition:</b> isr.h:21</div></div>
<div class="ttc" id="astructisr__vector__t_html_a43f6e622239ba42a25d2d9624c0d8f0b"><div class="ttname"><a href="structisr__vector__t.html#a43f6e622239ba42a25d2d9624c0d8f0b">isr_vector_t::opcode</a></div><div class="ttdeci">uint8_t opcode</div><div class="ttdef"><b>Definition:</b> isr.h:22</div></div>
<div class="ttc" id="astructisr__vector__t_html_a978f0092183f75d20a0f7de7add24b50"><div class="ttname"><a href="structisr__vector__t.html#a978f0092183f75d20a0f7de7add24b50">isr_vector_t::func</a></div><div class="ttdeci">void * func</div><div class="ttdef"><b>Definition:</b> isr.h:23</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
